package cn.edu.ustc.multicore.exercise.ch2;


public class BtNode {
	//the low position of range
	int low;
	//the high position of range
	int high;
	int sum ;
	int fromleft;
	BtNode  lchild,rchild;
	
	BtNode(int low,int high){
		this.low = low;
		this.high = high;
	}
	
	public void setSum(int sum){
		this.sum = sum;
	}
	
	public int getSum(){
		return this.sum;
	}

	public int getLow() {
		return low;
	}

	public void setLow(int low) {
		this.low = low;
	}

	public int getHigh() {
		return high;
	}

	public void setHigh(int high) {
		this.high = high;
	}

	public int getFromleft() {
		return fromleft;
	}

	public void setFromleft(int fromleft) {
		this.fromleft = fromleft;
	}

	public BtNode getLchild() {
		return lchild;
	}

	public void setLchild(BtNode lchild) {
		this.lchild = lchild;
	}

	public BtNode getRchild() {
		return rchild;
	}

	public void setRchild(BtNode rchild) {
		this.rchild = rchild;
	}

	
}
